package com.zan.pattern.observer;

/**
 * @Author Zan
 * @Create 2024/4/27 15:33
 * @Description : 具体观察者
 * @ClassName: WeiXinUser
 */
public class WeiXinUser implements Observer {

    private String name;

    public WeiXinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
